from likeshop_api_project.base.mybase import Tools


class reg_model(Tools):
    # 定义路径
    path = 'api/account/register'

    # 发送注册请求
    def reg_action(self, tel, pwd, client):
        reg_data = {
            "mobile": tel,
            "password": pwd,
            "client": client,
        }
        reg = self.meeting.post(url=self.hosturl+self.path, data=reg_data)
        return reg.json()

# import requests
# meeting = requests.session()
# r = reg_model(meeting=meeting)
# res = r.reg_action(tel='18922221234', pwd='xixi123.', client=2)
# print(res)



